package com.cyru.statemachine.core.impl;

import com.cyru.statemachine.core.StateMachineConfiguration;

import java.util.Set;

/**
 * description:
 *
 * @author zhangxuchuan
 * date 2022/5/1
 */
public class StateMachineConfigurationImpl<S, E, C> implements StateMachineConfiguration<S, E, C> {

    private Set<S> initStates;

    private Set<S> endStates;

    @Override
    public void setInitStates(Set<S> state) {
        this.initStates = state;
    }

    @Override
    public Set<S> getInitStates() {
        return initStates;
    }

    @Override
    public void setEndStates(Set<S> state) {
        this.endStates = state;
    }

    @Override
    public Set<S> getEndStates() {
        return endStates;
    }
}
